<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2024/10/12
  Time: 18:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="use.Message" %>
<%  Boolean ifLogin = (Boolean) session.getAttribute("ifLogin");
    if(ifLogin == null || !ifLogin) {
        request.setAttribute("Info", "未登录，请登录！");
        request.getRequestDispatcher("login.jsp").forward(request, response);
    }
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%  @SuppressWarnings("unchecked")
    Message message = (Message) session.getAttribute("details");
    if(message != null) {
        out.print("<p>" + message.toString() + "</p>" + "<br>"); // 使用 println
        out.print("<form action=\"edit.jsp\" method=\"post\"><input type=\"submit\" value=\"修改\"></form>");
        out.println("<form action=\"deleteServlet\" method=\"post\"><input type=\"submit\" value=\"删除\"></form>");

    }
%>
</body>
</html>
